#pragma once


#include <gl\GL.H>
#include <gl\GLU.H>

class CGraphics
{
private:
	static HDC m_HDC; //Device context - a bit like a rendering target
	static HGLRC m_hRC; // General OpenGL_DC - Our Rendering Context for OpenGL


public:
	CGraphics();
	~CGraphics();
	static bool bSetupPixelFormat(HDC hdc_);
	static void SetWindowSize(int width_, int height_); //resize OpenGL viewport and projection matrix
	static void CreateGLWindow(HWND hwnd_); //initialize OpenGL rendering in window
	static void DestroyGLWindow(HWND hwnd_); //close down and free memory
	static void ClearFrame(); //call before drawing each new frame
	static void SwapGLBuffers();  //double buffering - display buffer that contains current image
	static void DrawTestSquare();
};

